Optimal. Leaf size=272 \[ \frac {\left (c d^2-b d e+a e^2\right )^3 (d+e x)^4}{4 e^7}-\frac {3 (2 c d-b e) \left (c d^2-b d e+a e^2\right )^2 (d+e x)^5}{5 e^7}+\frac {\left (c d^2-b d e+a e^2\right ) \left (5 c^2 d^2+b^2 e^2-c e (5 b d-a e)\right ) (d+e x)^6}{2 e^7}-\frac {(2 c d-b e) \left (10 c^2 d^2+b^2 e^2-2 c e (5 b d-3 a e)\right ) (d+e x)^7}{7 e^7}+\frac {3 c \left (5 c^2 d^2+b^2 e^2-c e (5 b d-a e)\right ) (d+e x)^8}{8 e^7}-\frac {c^2 (2 c d-b e) (d+e x)^9}{3 e^7}+\frac {c^3 (d+e x)^{10}}{10 e^7} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.23, antiderivative size = 272, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {712}
\begin {gather*} \frac {3 c (d+e x)^8 \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{8 e^7}-\frac {(d+e x)^7 (2 c d-b e) \left (-2 c e (5 b d-3 a e)+b^2 e^2+10 c^2 d^2\right )}{7 e^7}+\frac {(d+e x)^6 \left (a e^2-b d e+c d^2\right ) \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{2 e^7}-\frac {3 (d+e x)^5 (2 c d-b e) \left (a e^2-b d e+c d^2\right )^2}{5 e^7}+\frac {(d+e x)^4 \left (a e^2-b d e+c d^2\right )^3}{4 e^7}-\frac {c^2 (d+e x)^9 (2 c d-b e)}{3 e^7}+\frac {c^3 (d+e x)^{10}}{10 e^7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 712
Rubi steps
\begin {align*} \int (d+e x)^3 \left (a+b x+c x^2\right )^3 \, dx &=\int \left (\frac {\left (c d^2-b d e+a e^2\right )^3 (d+e x)^3}{e^6}+\frac {3 (-2 c d+b e) \left (c d^2-b d e+a e^2\right )^2 (d+e x)^4}{e^6}+\frac {3 \left (c d^2-b d e+a e^2\right ) \left (5 c^2 d^2-5 b c d e+b^2 e^2+a c e^2\right ) (d+e x)^5}{e^6}+\frac {(2 c d-b e) \left (-10 c^2 d^2-b^2 e^2+2 c e (5 b d-3 a e)\right ) (d+e x)^6}{e^6}+\frac {3 c \left (5 c^2 d^2+b^2 e^2-c e (5 b d-a e)\right ) (d+e x)^7}{e^6}-\frac {3 c^2 (2 c d-b e) (d+e x)^8}{e^6}+\frac {c^3 (d+e x)^9}{e^6}\right ) \, dx\\ &=\frac {\left (c d^2-b d e+a e^2\right )^3 (d+e x)^4}{4 e^7}-\frac {3 (2 c d-b e) \left (c d^2-b d e+a e^2\right )^2 (d+e x)^5}{5 e^7}+\frac {\left (c d^2-b d e+a e^2\right ) \left (5 c^2 d^2+b^2 e^2-c e (5 b d-a e)\right ) (d+e x)^6}{2 e^7}-\frac {(2 c d-b e) \left (10 c^2 d^2+b^2 e^2-2 c e (5 b d-3 a e)\right ) (d+e x)^7}{7 e^7}+\frac {3 c \left (5 c^2 d^2+b^2 e^2-c e (5 b d-a e)\right ) (d+e x)^8}{8 e^7}-\frac {c^2 (2 c d-b e) (d+e x)^9}{3 e^7}+\frac {c^3 (d+e x)^{10}}{10 e^7}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 372, normalized size = 1.37 \begin {gather*} a^3 d^3 x+\frac {3}{2} a^2 d^2 (b d+a e) x^2+a d \left (b^2 d^2+3 a b d e+a \left (c d^2+a e^2\right )\right ) x^3+\frac {1}{4} \left (b^3 d^3+9 a b^2 d^2 e+a^2 e \left (9 c d^2+a e^2\right )+3 a b d \left (2 c d^2+3 a e^2\right )\right ) x^4+\frac {3}{5} \left (b^3 d^2 e+a b e \left (6 c d^2+a e^2\right )+a c d \left (c d^2+3 a e^2\right )+b^2 \left (c d^3+3 a d e^2\right )\right ) x^5+\frac {1}{2} \left (b^3 d e^2+a c e \left (3 c d^2+a e^2\right )+b c d \left (c d^2+6 a e^2\right )+b^2 \left (3 c d^2 e+a e^3\right )\right ) x^6+\frac {1}{7} \left (c^3 d^3+b^3 e^3+9 c^2 d e (b d+a e)+3 b c e^2 (3 b d+2 a e)\right ) x^7+\frac {3}{8} c e \left (c^2 d^2+b^2 e^2+c e (3 b d+a e)\right ) x^8+\frac {1}{3} c^2 e^2 (c d+b e) x^9+\frac {1}{10} c^3 e^3 x^{10} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.88, size = 495, normalized size = 1.82 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 375, normalized size = 1.38 \begin {gather*} \frac {1}{10} \, c^{3} x^{10} e^{3} + \frac {1}{3} \, {\left (c^{3} d e^{2} + b c^{2} e^{3}\right )} x^{9} + \frac {3}{8} \, {\left (c^{3} d^{2} e + 3 \, b c^{2} d e^{2} + b^{2} c e^{3} + a c^{2} e^{3}\right )} x^{8} + \frac {1}{7} \, {\left (c^{3} d^{3} + 9 \, b c^{2} d^{2} e + b^{3} e^{3} + 6 \, a b c e^{3} + 9 \, {\left (b^{2} c e^{2} + a c^{2} e^{2}\right )} d\right )} x^{7} + a^{3} d^{3} x + \frac {1}{2} \, {\left (b c^{2} d^{3} + a b^{2} e^{3} + a^{2} c e^{3} + 3 \, {\left (b^{2} c e + a c^{2} e\right )} d^{2} + {\left (b^{3} e^{2} + 6 \, a b c e^{2}\right )} d\right )} x^{6} + \frac {3}{5} \, {\left ({\left (b^{2} c + a c^{2}\right )} d^{3} + a^{2} b e^{3} + {\left (b^{3} e + 6 \, a b c e\right )} d^{2} + 3 \, {\left (a b^{2} e^{2} + a^{2} c e^{2}\right )} d\right )} x^{5} + \frac {1}{4} \, {\left (9 \, a^{2} b d e^{2} + {\left (b^{3} + 6 \, a b c\right )} d^{3} + a^{3} e^{3} + 9 \, {\left (a b^{2} e + a^{2} c e\right )} d^{2}\right )} x^{4} + {\left (3 \, a^{2} b d^{2} e + a^{3} d e^{2} + {\left (a b^{2} + a^{2} c\right )} d^{3}\right )} x^{3} + \frac {3}{2} \, {\left (a^{2} b d^{3} + a^{3} d^{2} e\right )} x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.90, size = 381, normalized size = 1.40 \begin {gather*} \frac {1}{7} \, c^{3} d^{3} x^{7} + \frac {1}{2} \, b c^{2} d^{3} x^{6} + \frac {3}{5} \, {\left (b^{2} c + a c^{2}\right )} d^{3} x^{5} + \frac {3}{2} \, a^{2} b d^{3} x^{2} + \frac {1}{4} \, {\left (b^{3} + 6 \, a b c\right )} d^{3} x^{4} + a^{3} d^{3} x + {\left (a b^{2} + a^{2} c\right )} d^{3} x^{3} + \frac {1}{840} \, {\left (84 \, c^{3} x^{10} + 280 \, b c^{2} x^{9} + 315 \, {\left (b^{2} c + a c^{2}\right )} x^{8} + 504 \, a^{2} b x^{5} + 120 \, {\left (b^{3} + 6 \, a b c\right )} x^{7} + 210 \, a^{3} x^{4} + 420 \, {\left (a b^{2} + a^{2} c\right )} x^{6}\right )} e^{3} + \frac {1}{840} \, {\left (280 \, c^{3} d x^{9} + 945 \, b c^{2} d x^{8} + 1080 \, {\left (b^{2} c + a c^{2}\right )} d x^{7} + 1890 \, a^{2} b d x^{4} + 420 \, {\left (b^{3} + 6 \, a b c\right )} d x^{6} + 840 \, a^{3} d x^{3} + 1512 \, {\left (a b^{2} + a^{2} c\right )} d x^{5}\right )} e^{2} + \frac {3}{280} \, {\left (35 \, c^{3} d^{2} x^{8} + 120 \, b c^{2} d^{2} x^{7} + 140 \, {\left (b^{2} c + a c^{2}\right )} d^{2} x^{6} + 280 \, a^{2} b d^{2} x^{3} + 56 \, {\left (b^{3} + 6 \, a b c\right )} d^{2} x^{5} + 140 \, a^{3} d^{2} x^{2} + 210 \, {\left (a b^{2} + a^{2} c\right )} d^{2} x^{4}\right )} e \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 484, normalized size = 1.78 \begin {gather*} a^{3} d^{3} x + \frac {c^{3} e^{3} x^{10}}{10} + x^{9} \left (\frac {b c^{2} e^{3}}{3} + \frac {c^{3} d e^{2}}{3}\right ) + x^{8} \cdot \left (\frac {3 a c^{2} e^{3}}{8} + \frac {3 b^{2} c e^{3}}{8} + \frac {9 b c^{2} d e^{2}}{8} + \frac {3 c^{3} d^{2} e}{8}\right ) + x^{7} \cdot \left (\frac {6 a b c e^{3}}{7} + \frac {9 a c^{2} d e^{2}}{7} + \frac {b^{3} e^{3}}{7} + \frac {9 b^{2} c d e^{2}}{7} + \frac {9 b c^{2} d^{2} e}{7} + \frac {c^{3} d^{3}}{7}\right ) + x^{6} \left (\frac {a^{2} c e^{3}}{2} + \frac {a b^{2} e^{3}}{2} + 3 a b c d e^{2} + \frac {3 a c^{2} d^{2} e}{2} + \frac {b^{3} d e^{2}}{2} + \frac {3 b^{2} c d^{2} e}{2} + \frac {b c^{2} d^{3}}{2}\right ) + x^{5} \cdot \left (\frac {3 a^{2} b e^{3}}{5} + \frac {9 a^{2} c d e^{2}}{5} + \frac {9 a b^{2} d e^{2}}{5} + \frac {18 a b c d^{2} e}{5} + \frac {3 a c^{2} d^{3}}{5} + \frac {3 b^{3} d^{2} e}{5} + \frac {3 b^{2} c d^{3}}{5}\right ) + x^{4} \left (\frac {a^{3} e^{3}}{4} + \frac {9 a^{2} b d e^{2}}{4} + \frac {9 a^{2} c d^{2} e}{4} + \frac {9 a b^{2} d^{2} e}{4} + \frac {3 a b c d^{3}}{2} + \frac {b^{3} d^{3}}{4}\right ) + x^{3} \left (a^{3} d e^{2} + 3 a^{2} b d^{2} e + a^{2} c d^{3} + a b^{2} d^{3}\right ) + x^{2} \cdot \left (\frac {3 a^{3} d^{2} e}{2} + \frac {3 a^{2} b d^{3}}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.01, size = 469, normalized size = 1.72 \begin {gather*} \frac {1}{10} \, c^{3} x^{10} e^{3} + \frac {1}{3} \, c^{3} d x^{9} e^{2} + \frac {3}{8} \, c^{3} d^{2} x^{8} e + \frac {1}{7} \, c^{3} d^{3} x^{7} + \frac {1}{3} \, b c^{2} x^{9} e^{3} + \frac {9}{8} \, b c^{2} d x^{8} e^{2} + \frac {9}{7} \, b c^{2} d^{2} x^{7} e + \frac {1}{2} \, b c^{2} d^{3} x^{6} + \frac {3}{8} \, b^{2} c x^{8} e^{3} + \frac {3}{8} \, a c^{2} x^{8} e^{3} + \frac {9}{7} \, b^{2} c d x^{7} e^{2} + \frac {9}{7} \, a c^{2} d x^{7} e^{2} + \frac {3}{2} \, b^{2} c d^{2} x^{6} e + \frac {3}{2} \, a c^{2} d^{2} x^{6} e + \frac {3}{5} \, b^{2} c d^{3} x^{5} + \frac {3}{5} \, a c^{2} d^{3} x^{5} + \frac {1}{7} \, b^{3} x^{7} e^{3} + \frac {6}{7} \, a b c x^{7} e^{3} + \frac {1}{2} \, b^{3} d x^{6} e^{2} + 3 \, a b c d x^{6} e^{2} + \frac {3}{5} \, b^{3} d^{2} x^{5} e + \frac {18}{5} \, a b c d^{2} x^{5} e + \frac {1}{4} \, b^{3} d^{3} x^{4} + \frac {3}{2} \, a b c d^{3} x^{4} + \frac {1}{2} \, a b^{2} x^{6} e^{3} + \frac {1}{2} \, a^{2} c x^{6} e^{3} + \frac {9}{5} \, a b^{2} d x^{5} e^{2} + \frac {9}{5} \, a^{2} c d x^{5} e^{2} + \frac {9}{4} \, a b^{2} d^{2} x^{4} e + \frac {9}{4} \, a^{2} c d^{2} x^{4} e + a b^{2} d^{3} x^{3} + a^{2} c d^{3} x^{3} + \frac {3}{5} \, a^{2} b x^{5} e^{3} + \frac {9}{4} \, a^{2} b d x^{4} e^{2} + 3 \, a^{2} b d^{2} x^{3} e + \frac {3}{2} \, a^{2} b d^{3} x^{2} + \frac {1}{4} \, a^{3} x^{4} e^{3} + a^{3} d x^{3} e^{2} + \frac {3}{2} \, a^{3} d^{2} x^{2} e + a^{3} d^{3} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.12, size = 381, normalized size = 1.40 \begin {gather*} x^4\,\left (\frac {a^3\,e^3}{4}+\frac {9\,a^2\,b\,d\,e^2}{4}+\frac {9\,c\,a^2\,d^2\,e}{4}+\frac {9\,a\,b^2\,d^2\,e}{4}+\frac {3\,c\,a\,b\,d^3}{2}+\frac {b^3\,d^3}{4}\right )+x^7\,\left (\frac {b^3\,e^3}{7}+\frac {9\,b^2\,c\,d\,e^2}{7}+\frac {9\,b\,c^2\,d^2\,e}{7}+\frac {6\,a\,b\,c\,e^3}{7}+\frac {c^3\,d^3}{7}+\frac {9\,a\,c^2\,d\,e^2}{7}\right )+x^5\,\left (\frac {3\,a^2\,b\,e^3}{5}+\frac {9\,a^2\,c\,d\,e^2}{5}+\frac {9\,a\,b^2\,d\,e^2}{5}+\frac {18\,a\,b\,c\,d^2\,e}{5}+\frac {3\,a\,c^2\,d^3}{5}+\frac {3\,b^3\,d^2\,e}{5}+\frac {3\,b^2\,c\,d^3}{5}\right )+x^6\,\left (\frac {a^2\,c\,e^3}{2}+\frac {a\,b^2\,e^3}{2}+3\,a\,b\,c\,d\,e^2+\frac {3\,a\,c^2\,d^2\,e}{2}+\frac {b^3\,d\,e^2}{2}+\frac {3\,b^2\,c\,d^2\,e}{2}+\frac {b\,c^2\,d^3}{2}\right )+a^3\,d^3\,x+\frac {c^3\,e^3\,x^{10}}{10}+\frac {3\,a^2\,d^2\,x^2\,\left (a\,e+b\,d\right )}{2}+\frac {c^2\,e^2\,x^9\,\left (b\,e+c\,d\right )}{3}+a\,d\,x^3\,\left (a^2\,e^2+3\,a\,b\,d\,e+c\,a\,d^2+b^2\,d^2\right )+\frac {3\,c\,e\,x^8\,\left (b^2\,e^2+3\,b\,c\,d\,e+c^2\,d^2+a\,c\,e^2\right )}{8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________